package com.leyou.user.inter.pojo;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * @数表名称 tb_user_adress
 * @开发日期 2020-04-05
 */
@Data
@Table(name="tb_user_adress")
public class UserAdress implements Serializable {
    
    /** 主键id (主健ID) */
    @Id
    @Column(name="id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    /** 用户id */
    @Column(name="user_id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long userId;

    /** 收货人姓名 */
    @Column(name="name")
    private String name;

    /** 收货人电话 */
    @Column(name="phone")
    private String phone;

    /** 是否默认地址：0/否 1/是  (默认值为: 0) */
    @Column(name="is_flag")
    private Boolean isFlag;

    /** 收获地址（省） */
    @Column(name="receiver_state")
    private String receiverState;

    /** 收获地址（市） */
    @Column(name="receiver_city")
    private String receiverCity;

    /** 收获地址（区/县） */
    @Column(name="receiver_district")
    private String receiverDistrict;

    /** 收获地址（街道、住址等详细地址） */
    @Column(name="receiver_address")
    private String receiverAddress;

    private static final long serialVersionUID = 1L;
}